I went through documents https://learn.microsoft.com/en-us/windows/powertoys/file-locksmith and found no info on how to unlock folder using commandline(CMD).
Command line options. LockHunter can be used from the command line using the following syntaxis: LockHunter.exe [/unlock] [/delete [/delperm]] [/kill] ...
New features. Now command line returns non zero exit code in case of unsuccessful operation. Find list of exit codes in the manual; delperm command line ...
Key Features · Shows processes locking a file or folder · Gives you detailed information on the process · Allows to unlock, delete, copy or rename a locked file ... Download LockHunter · LockHunter Screenshot Guide · Crystal Rich Ltd | Abou
Don't use unlocking tools except as a last resort. If Word has a lock on the file and you want it to release it, the only safe way is to close the file in Word.
My tool of choice for this scenario is LockHunter. It also sports a command-line interface in addition to a GUI. It works on Windows 7 x68 and x64 editions.